package com.mes.biz.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mes.common.core.domain.BaseEntity;
import com.mes.common.utils.log.annotation.FieldRemark;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 付款单对象 biz_payable
 * @author hwg
 * @email hwg
 * @date 2023-04-30
 */
@Data
public class BizPayable extends BaseEntity<BizPayable>
{
    private static final long serialVersionUID = 1L;

    @FieldRemark(name = "单据编号",field = "payCode")
    private String payCode;

    @FieldRemark(name = "采购单编号",field = "purchaseCode")
    private String purchaseCode;

    @FieldRemark(name = "供应商编码",field = "supplierCode")
    private String supplierCode;

    @FieldRemark(name = "供应商名称",field = "supplierName")
    private String supplierName;

    @FieldRemark(name = "付款金额",field = "payAmount")
    private BigDecimal payAmount;

    @FieldRemark(name = "应付款金额",field = "hasAmount")
    private BigDecimal hasAmount;

    @FieldRemark(name = "付款账户",field = "payAccount")
    private String payAccount;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @FieldRemark(name = "付款日期",field = "payDate")
    private String payDate;

    @FieldRemark(name = "单据类型1付款单2预付单",field = "payType")
    private String payType;

    @FieldRemark(name = "租户id",field = "status")
    private String tenantId;

    private boolean flag = true;
}
